#ifndef CAMERA2D_H
#define CAMERA2D_H

#include "vec2.h"
#include "ivec2.h"

class Camera2D
{
public:
	Camera2D();
/*
	void MouseMove ( int x, int y );
	void MouseButton ( int button, int state );
	void KeyButton ( int key, int state );
	void MouseWheel( int val );
*/
	void SetupPosition();
	void SetupProjection(int width,int height);

	void SetCenter(vec2& c);

	vec2 GetCenter(){return center;}
	float GetScale(){return scale;}
	void SetScale(float sc){scale=sc;}

	vec2 Get2DCoords(ivec2 cursor);

private:
	vec2 center;
	float scale;

	int mx,my, w,h;
	char bt;
	bool hand_move;
};

#endif

